class HtmlLang
	attr_reader :initial_state, :version, :states, :keywords
	attr_writer :initial_state
	
	def initialize
		@version = '1.10'
		@initial_state ='OUT'
			@states = Dictionary.new
				@states["OUT"] = Array.new
					@states["OUT"][0] = Dictionary.new
						@states["OUT"][0]["<!--"] = Array.new
						@states["OUT"][0]["<!--"][0] = "COMMENT"
						@states["OUT"][0]["<!--"][1] = 0

						@states["OUT"][0]["<?php"] = Array.new
						@states["OUT"][0]["<?php"][0] = "TO_PHP"
						@states["OUT"][0]["<?php"][1] = 0

						@states["OUT"][0]["<?"] = Array.new
						@states["OUT"][0]["<?"][0] = "TO_PHP"
						@states["OUT"][0]["<?"][1] = 0

						@states["OUT"][0]["<"] = Array.new
						@states["OUT"][0]["<"][0] = "TAG"
						@states["OUT"][0]["<"][1] = 0

						@states["OUT"][0]["_COUNTAB"] = Array.new
						@states["OUT"][0]["_COUNTAB"][0] = "OUT"
						@states["OUT"][0]["_COUNTAB"][1] = 0


				@states["OUT"][1] = 0
				@states["OUT"][2] = nil
				@states["OUT"][3] = nil

				@states["TAG"] = Array.new
					@states["TAG"][0] = Dictionary.new
						@states["TAG"][0][">"] = Array.new
						@states["TAG"][0][">"][0] = "OUT"
						@states["TAG"][0][">"][1] = 1

						@states["TAG"][0]["SPACE"] = Array.new
						@states["TAG"][0]["SPACE"][0] = "inTAG"
						@states["TAG"][0]["SPACE"][1] = 0

						@states["TAG"][0]["style"] = Array.new
						@states["TAG"][0]["style"][0] = "CSS"
						@states["TAG"][0]["style"][1] = 1

						@states["TAG"][0]["STYLE"] = Array.new
						@states["TAG"][0]["STYLE"][0] = "CSS"
						@states["TAG"][0]["STYLE"][1] = 1

						@states["TAG"][0]["<?php"] = Array.new
						@states["TAG"][0]["<?php"][0] = "TO_PHP"
						@states["TAG"][0]["<?php"][1] = 0

						@states["TAG"][0]["<?"] = Array.new
						@states["TAG"][0]["<?"][0] = "TO_PHP"
						@states["TAG"][0]["<?"][1] = 0


				@states["TAG"][1] = 0
				@states["TAG"][2] = "html-tag"
				@states["TAG"][3] = nil

				@states["inTAG"] = Array.new
					@states["inTAG"][0] = Dictionary.new
						@states["inTAG"][0]["\""] = Array.new
						@states["inTAG"][0]["\""][0] = "QUOTE1"
						@states["inTAG"][0]["\""][1] = 0

						@states["inTAG"][0]["\'"] = Array.new
						@states["inTAG"][0]["\'"][0] = "QUOTE2"
						@states["inTAG"][0]["\'"][1] = 0

						@states["inTAG"][0][">"] = Array.new
						@states["inTAG"][0][">"][0] = "_RET"
						@states["inTAG"][0][">"][1] = 1

						@states["inTAG"][0]["<?php"] = Array.new
						@states["inTAG"][0]["<?php"][0] = "TO_PHP"
						@states["inTAG"][0]["<?php"][1] = 0

						@states["inTAG"][0]["<?"] = Array.new
						@states["inTAG"][0]["<?"][0] = "TO_PHP"
						@states["inTAG"][0]["<?"][1] = 0

						@states["inTAG"][0]["_COUNTAB"] = Array.new
						@states["inTAG"][0]["_COUNTAB"][0] = "inTAG"
						@states["inTAG"][0]["_COUNTAB"][1] = 0


				@states["inTAG"][1] = 4
				@states["inTAG"][2] = "html-tagin"
				@states["inTAG"][3] = nil

				@states["CSS"] = Array.new
					@states["CSS"][0] = Dictionary.new
						@states["CSS"][0]["\""] = Array.new
						@states["CSS"][0]["\""][0] = "QUOTE1"
						@states["CSS"][0]["\""][1] = 0

						@states["CSS"][0]["\'"] = Array.new
						@states["CSS"][0]["\'"][0] = "QUOTE2"
						@states["CSS"][0]["\'"][1] = 0

						@states["CSS"][0][">"] = Array.new
						@states["CSS"][0][">"][0] = "TO_CSS"
						@states["CSS"][0][">"][1] = 0

						@states["CSS"][0]["<?php"] = Array.new
						@states["CSS"][0]["<?php"][0] = "TO_PHP"
						@states["CSS"][0]["<?php"][1] = 0

						@states["CSS"][0]["<?"] = Array.new
						@states["CSS"][0]["<?"][0] = "TO_PHP"
						@states["CSS"][0]["<?"][1] = 0

						@states["CSS"][0]["_COUNTAB"] = Array.new
						@states["CSS"][0]["_COUNTAB"][0] = "inTAG"
						@states["CSS"][0]["_COUNTAB"][1] = 0


				@states["CSS"][1] = 4
				@states["CSS"][2] = "html-tagin"
				@states["CSS"][3] = nil

				@states["TO_CSS"] = Array.new
					@states["TO_CSS"][0] = Dictionary.new
						@states["TO_CSS"][0][">"] = Array.new
						@states["TO_CSS"][0][">"][0] = "_RET"
						@states["TO_CSS"][0][">"][1] = 1


				@states["TO_CSS"][1] = 8
				@states["TO_CSS"][2] = "html-tag"
				@states["TO_CSS"][3] = "CSS"

				@states["QUOTE1"] = Array.new
					@states["QUOTE1"][0] = Dictionary.new
						@states["QUOTE1"][0]["\""] = Array.new
						@states["QUOTE1"][0]["\""][0] = "_RET"
						@states["QUOTE1"][0]["\""][1] = 0

						@states["QUOTE1"][0]["<?php"] = Array.new
						@states["QUOTE1"][0]["<?php"][0] = "TO_PHP"
						@states["QUOTE1"][0]["<?php"][1] = 0

						@states["QUOTE1"][0]["<?"] = Array.new
						@states["QUOTE1"][0]["<?"][0] = "TO_PHP"
						@states["QUOTE1"][0]["<?"][1] = 0

						@states["QUOTE1"][0]["_COUNTAB"] = Array.new
						@states["QUOTE1"][0]["_COUNTAB"][0] = "QUOTE1"
						@states["QUOTE1"][0]["_COUNTAB"][1] = 0


				@states["QUOTE1"][1] = 4
				@states["QUOTE1"][2] = "html-quote"
				@states["QUOTE1"][3] = nil

				@states["QUOTE2"] = Array.new
					@states["QUOTE2"][0] = Dictionary.new
						@states["QUOTE2"][0]["\'"] = Array.new
						@states["QUOTE2"][0]["\'"][0] = "_RET"
						@states["QUOTE2"][0]["\'"][1] = 0

						@states["QUOTE2"][0]["<?php"] = Array.new
						@states["QUOTE2"][0]["<?php"][0] = "TO_PHP"
						@states["QUOTE2"][0]["<?php"][1] = 0

						@states["QUOTE2"][0]["<?"] = Array.new
						@states["QUOTE2"][0]["<?"][0] = "TO_PHP"
						@states["QUOTE2"][0]["<?"][1] = 0

						@states["QUOTE2"][0]["_COUNTAB"] = Array.new
						@states["QUOTE2"][0]["_COUNTAB"][0] = "QUOTE2"
						@states["QUOTE2"][0]["_COUNTAB"][1] = 0


				@states["QUOTE2"][1] = 4
				@states["QUOTE2"][2] = "html-quote"
				@states["QUOTE2"][3] = nil

				@states["COMMENT"] = Array.new
					@states["COMMENT"][0] = Dictionary.new
						@states["COMMENT"][0]["-->"] = Array.new
						@states["COMMENT"][0]["-->"][0] = "OUT"
						@states["COMMENT"][0]["-->"][1] = 1

						@states["COMMENT"][0]["<?php"] = Array.new
						@states["COMMENT"][0]["<?php"][0] = "TO_PHP"
						@states["COMMENT"][0]["<?php"][1] = 0

						@states["COMMENT"][0]["<?"] = Array.new
						@states["COMMENT"][0]["<?"][0] = "TO_PHP"
						@states["COMMENT"][0]["<?"][1] = 0

						@states["COMMENT"][0]["_COUNTAB"] = Array.new
						@states["COMMENT"][0]["_COUNTAB"][0] = "COMMENT"
						@states["COMMENT"][0]["_COUNTAB"][1] = 0


				@states["COMMENT"][1] = 0
				@states["COMMENT"][2] = "html-comment"
				@states["COMMENT"][3] = nil

				@states["TO_PHP"] = Array.new
				@states["TO_PHP"][0] = nil
				@states["TO_PHP"][1] = 8
				@states["TO_PHP"][2] = "xlang"
				@states["TO_PHP"][3] = "PHP"


			@keywords = Array.new

	end
end